package cn.etynit.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ParkingSpaceDto {
    /**
     * 用户id
     */
    @NotNull(message = "业主id不能为空")
    private Long userId;
    /**
     * 车牌号
     */
    @NotEmpty(message = "车牌号不能为空")
    private String number;
    /**
     * 车类型  0：小汽车，1：电瓶车等其他车
     */
    @NotEmpty(message = "请选择正确的车子类型")
    private Integer carType;

    @NotNull(message = "操作员工不能为空！")
    private Long employeeId;
}
